משרת סטודנט
היה ראיון עם ראש צוות במהלכו נשאלה שאלה אחת
שאלות מתוך הראיון
איבר שני מקסימלי
תשובות
הוסף תשובה
|
לצפיה בתשובות
פברואר 2022
ליצור שני משתנים שיצביעו לאיברים הראשון והשני, להשוות ביניהם ולקבוע מי מהם הגדול ומי השני הכי גדול, נקרא להם biggest וsecond.
עכשיו לעבור על המערך החל מi=2 (בלולאת for) ולהשוות את האיבר מול biggest. אם גדול יותר, אז לעדכן את biggest ולעשות שוב השוואה בין biggest לבין second ולעדכן מי זה מי. אם קטן יותר, להשוות רק מול second ואם גדול יותר אז לעדכן רק את second.
לבסוף להחזיר את second.
היה ראיון טלפוני קצר ומשם המשיך למבחן בית שכלל 3 שאלות שניתן לפתור באיזה שפה שנוח לי
שאלות מתוך הראיון
You are giving string s and c. string s represents a table in CSV (comma-separated values) format, where rows are separated by new line characters (`\n`) and each row consists of one or more fields separated by commas (`,`).
The first row contains the names of the columns. The following rows contain values.
For example, the table below is presented by the flowing string s:
“id,name,age,act,room,dep.\n1,Jack,68,T,13,8\n17,Betty,28,F,15,7”
id name age act room Dep.
1 Jack 68 T 13 8
17 Betty 28 F 15 7
String c is the name of a column in the table described by s that contains only integers.
Tour task is to find the maximum values in that column. In the example above for c=”age”, the maximum value is 68.
Write a function def solution(s ,c) which given two strings s and c consisting of n and m characters, respectively, returns the maximum value in column c of the table described by s
עוסקת בפיתוח תוכנה לאבטחת מידע - תוכנות חומת אש ו־VPN.בסיסה הבינלאומי נמצא ברדווד סיטי, קליפורניה, ומרכזי הפיתוח נמצאים בתל אביב ובבלארוס.החברה נוסדה בשנת 1993 על ידי שלמה קרמר, מריוס נכט וגיל שוויד.